import { Injectable } from '@angular/core';
import { HttpClient } from "@angular/common/http";

import { MessageService } from '../message.service';
import { Observable, of } from 'rxjs';
@Injectable({
    providedIn: 'root',
  })
export class ImportService{

    constructor(
        private http:HttpClient,
        private messageService: MessageService
    ) { }

    saveExcelToDB(inputdata = []){
        return this.http.post<any>("saveExcelDataToDB", inputdata
        // {params: {
        //     inputdata: inputdata
        //   }}
          );
    }

    saveExcelToDbForClassList(inputdata:any[]=[],uplaodType:string="00"){
      return this.http.post<any>("saveExcelDataToDBForClassList",inputdata
          // {data: {
          //   inputdata: inputdata,
          //   uplaodType: uplaodType
          // }}
        );
    }
    saveExcelToDbForProcessList(inputdata:any[]=[],uplaodType:string="00"){
      return this.http.post<any>("saveExcelDataToDBForProcessList",inputdata
          // {data: {
          //   inputdata: inputdata,
          //   uplaodType: uplaodType
          // }}
        );
    }

    saveExcelToDbForLgcDtaItem(inputdata:any[]=[]){
      return this.http.post<any>("saveExcelToDbForLgcDtaItem", inputdata
        );
  }

};
